#!/usr/bin/python
"""
util_test.py: Tests for util.py
"""

import sys
import unittest

import util  # module under test


def f(parsed):
  a = 1 
  b = 2

LEXER = {'a': 3}

RULES = 'b'


class GlueTest(unittest.TestCase):

  def testGet(self):
    print util.get_actions(__name__)

    l = util.get_value(__name__, dict, 'LEXER')
    self.assertEqual(LEXER, l)

    r = util.get_value(__name__, basestring, 'RULES')
    self.assertEqual(RULES, r)



if __name__ == '__main__':
  unittest.main()
